import Vue from 'vue'
import Vuex from 'vuex'
import student from './student';
Vue.use(Vuex)

const store = new Vuex.Store({
    modules:{
        student
    },
    state: {
      count: 0
    },
    getters:{
        getCount(state){
            return "$"+state.count;
        }

    },
    mutations: {
      increment (state,payload) {
        state.count += payload;
      }
    }
  })

export default store;